package com.ttc.ssm.service.admin;

import com.ttc.ssm.common.CompanyPage;
import com.ttc.ssm.common.Page;
import com.ttc.ssm.po.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by Jiarui on 2016/7/25.
 */
public interface CompanyService {
    public List<Company> selectCompanyForPage(CompanyPage page) throws Exception;
    public List<Company> selectVerifyForPage(CompanyPage page);
    public void deleteCompanies(Map<String,Object> map, HttpServletRequest request) throws Exception;
    public void updateCompanyStatus(int company_id,int status) throws Exception;
    public CompanyDetail selectCompanyDetail(int company_id) throws Exception;
    public Company selectCompanyById(int company_id) throws Exception;
    public Industry select_industry_name(int industry_id) throws Exception;
    public  List<Zone> getZone() throws Exception;
    public List<Industry> getIndustry() throws Exception;
    public List<CompanySize> getCompanySize() throws Exception;
    public List<CompanyProperty> getCompanyProperty() throws Exception;
    public List<City> getCityByZoneId(int zone_id) throws Exception;
    public void updateCompany(Company company) throws Exception;
    public void updateCompanyDetail(CompanyDetail companyDetail) throws Exception;
    public void insertCompanyDetail(CompanyDetail companyDetail) throws Exception;
    public void verifyCompanyDetail(int status, int company_id) throws Exception;
    public int countRows(CompanyPage companyPage) throws Exception;
    public int countRowsVerify(CompanyPage companyPage) throws Exception;
}
